package com.yymx.toback.api;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@SpringBootApplication
@EnableAspectJAutoProxy(proxyTargetClass=true)
@MapperScan("com.yymx.toback.dto.*.mapper")
@EnableTransactionManagement
@ComponentScan(basePackages = {"com.yymx.toback.api","com.yymx.toback.common","com.yymx.toback.dto","com.yymx.toback.service"})
public class ApiApplication {

    public static void main(String[] args) {
        SpringApplication.run(ApiApplication.class, args);
    }

}
